package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**   
 * @Title: Entity
 * @Description: 商城收获地址
 * @author zhangdaihao
 * @date 2016-12-06 15:47:57
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_consigneeadd", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallConsigneeaddEntity implements java.io.Serializable {
	/**id*/
	private java.lang.Integer id;
	/**userid*/
	private java.lang.Integer userid;
	/**contactname*/
	private java.lang.String contactname;
	/**mobilephone*/
	private java.lang.String mobilephone;
	/**contactphone*/
	private java.lang.String contactphone;
	/**areacode*/
	private java.lang.String areacode;
	/**address*/
	private java.lang.String address;
	/**是否默认*/
	private java.lang.Integer isdefault;

	private String addressName;
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  id
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  id
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  userid
	 */
	@Column(name ="USERID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getUserid(){
		return this.userid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  userid
	 */
	public void setUserid(java.lang.Integer userid){
		this.userid = userid;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  contactname
	 */
	@Column(name ="CONTACTNAME",nullable=false,length=50)
	public java.lang.String getContactname(){
		return this.contactname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  contactname
	 */
	public void setContactname(java.lang.String contactname){
		this.contactname = contactname;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  mobilephone
	 */
	@Column(name ="MOBILEPHONE",nullable=false,length=11)
	public java.lang.String getMobilephone(){
		return this.mobilephone;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  mobilephone
	 */
	public void setMobilephone(java.lang.String mobilephone){
		this.mobilephone = mobilephone;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  contactphone
	 */
	@Column(name ="CONTACTPHONE",nullable=true,length=50)
	public java.lang.String getContactphone(){
		return this.contactphone;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  contactphone
	 */
	public void setContactphone(java.lang.String contactphone){
		this.contactphone = contactphone;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  areacode
	 */
	@Column(name ="AREACODE",nullable=false,length=10)
	public java.lang.String getAreacode(){
		return this.areacode;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  areacode
	 */
	public void setAreacode(java.lang.String areacode){
		this.areacode = areacode;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  address
	 */
	@Column(name ="ADDRESS",nullable=false,length=50)
	public java.lang.String getAddress(){
		return this.address;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  address
	 */
	public void setAddress(java.lang.String address){
		this.address = address;
	}
	/**
	 *方法: 取得java.lang.Object
	 *@return: java.lang.Object  是否默认
	 */
	@Column(name ="ISDEFAULT",nullable=false,precision=1)
	public java.lang.Integer getIsdefault(){
		return this.isdefault;
	}

	/**
	 *方法: 设置java.lang.Object
	 *@param: java.lang.Object  是否默认
	 */
	public void setIsdefault(java.lang.Integer isdefault){
		this.isdefault = isdefault;
	}

	@Transient
	public String getAddressName() {
		return addressName;
	}

	public void setAddressName(String addressName) {
		this.addressName = addressName;
	}
}
